//社保基数管理 显示表格及js实体

Ext.define('SocialInsuranceModel', {
    extend: 'Ext.data.Model',
    fields: [
        "Id"
	    , "CompanyId"   //公司Id
		, "CompanyName"   //公司名称
		, "Name"   //社保名称
		, "CompanyBase"   //企业基数
		, "CompanyRatio"   //企业比例
		, "CompanyPlus"   //企业附加金额
		, "PersonalBase"   //个人基数
		, "IsFixed"   //是否固定
		, "PersonalRatio"   //个人比例
		, "PersonalPlus"   //个人附加金额
	],
    idProperty: "Id"
});

Ext.define("SHApp.CompanyManage.ProductInfo.SocialInsuranceComboBox", {
    extend: "BLBTSystem.CmbData",   
    alias: "widget.socialInsuranceComboBox",
    dataUrl: "api/socialinsuranceQ?format=json",
    model: "SocialInsuranceModel",
    matchFieldWidth: false,
    sorters: [{
        property: 'Name',
        direction: 'ASC'
    }],
    listConfig: {
        resizable: true,
        width: 300
    },
    minChars: 1,
    valueField: "Id",
    displayField: "Name",
    maxLength: 100,
    forceSelection: false,
    initComponent: function () {
        Ext.apply(this);
        this.callParent(arguments);
    }
});
